<template>
  <div v-if="route.path === '/login' || route.path === '/'" class="login">
    <router-view></router-view>
  </div>
  <madoka-layout v-else>
    <router-view></router-view>
  </madoka-layout>
  <madoka></madoka>
</template>
<script setup lang="ts">

import MadokaLayout from "@/components/MadokaLayout.vue";

const route = useRoute();

</script>


<style scoped lang="less">

.login {
  display: flex;
  position: fixed;
  inset: 0;
  text-align: center;
  justify-content: center; /* 水平居中 */
  align-items: center; /* 垂直居中 */
}
</style>
